﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace lib
{
    public class CustomExceptions
    {
        //Custom exception for when the connection string is not available
        public class DataContextDBDoesNotExist : ApplicationException
        {
            // Use the default ApplicationException constructors
            public DataContextDBDoesNotExist() : base() { }
            public DataContextDBDoesNotExist(string s) : base(s) { }
            public DataContextDBDoesNotExist(string s, Exception ex) : base(s, ex) { }
        }

        // Maybe just throw a default exception with some msg instead of 
        // defining these new exceptions.
        // Hlodver?
        public class JsonParseError : System.Exception
        {
            public JsonParseError() : base() {}
            public JsonParseError(String msg) : base(msg){ }
            public JsonParseError(String msg, System.Exception inner) : base(msg, inner) { }
        }

        public class JsonTwitterError : System.Exception
        {
            public JsonTwitterError() : base() { }
            public JsonTwitterError(String msg) : base(msg) { }
            public JsonTwitterError(String msg, System.Exception inner) : base(msg, inner) { }
        }
    }
}
